//
//  ViewController.h
//  Partie III
//
//  Created by Vincent Seguin on 12-01-31.
//  Copyright (c) 2012 ETS. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "Athlete.h"

@interface ViewController : UIViewController <UITableViewDelegate,UITableViewDataSource> {
    NSMutableArray *arrAthlete;
    NSDate *startDate;
    NSTimeInterval duree;
    NSTimer *timer;
    int count;
    bool isRacing;
    __weak IBOutlet UITableView *gridAthlete;
    __weak IBOutlet UITextField *txtNom;
    __weak IBOutlet UITextField *txtPrenom;
    __weak IBOutlet UITextField *txtPays;
    __weak IBOutlet UILabel *lblFirst;
    __weak IBOutlet UILabel *lblSecond;
    __weak IBOutlet UILabel *lblThird;
    __weak IBOutlet UILabel *lblNombreAthleteRestant;
    __weak IBOutlet UILabel *lblJuge1;
    __weak IBOutlet UILabel *lblJuge2;
    __weak IBOutlet UILabel *lblJuge3;
    __weak IBOutlet UILabel *lblJuge4;
    __weak IBOutlet UILabel *lblJuge5;
    __weak IBOutlet UILabel *lblJuge6;
    __weak IBOutlet UILabel *lblJuge7;
    __weak IBOutlet UILabel *lblAthleteEnCourse;
    __weak IBOutlet UILabel *lblAthleteProchain1;
    __weak IBOutlet UILabel *lblAthleteProchain2;
    __weak IBOutlet UILabel *lblChrono;
    __weak IBOutlet UIStepper *stepperJuge1;
    __weak IBOutlet UIStepper *stepperJuge2;
    __weak IBOutlet UIStepper *stepperJuge3;
    __weak IBOutlet UIStepper *stepperJuge4;
    __weak IBOutlet UIStepper *stepperJuge5;
    __weak IBOutlet UIStepper *stepperJuge6;
    __weak IBOutlet UIStepper *stepperJuge7;
    __weak IBOutlet UIButton *btnCommencerDescente;
    __weak IBOutlet UIButton *btnFinDescente;
    __weak IBOutlet UIButton *btnDidNotFinish;
    __weak IBOutlet UIButton *btnEntrerScore;
    __weak IBOutlet UIButton *btnTerminer;
}
- (IBAction)btnInscriptionTouchDown:(id)sender;
- (IBAction)btnCommencerDescenteTouchDown:(id)sender;
- (IBAction)btnFinDescenteTouchDown:(id)sender;
- (IBAction)btnDidNotFinishTouchDown:(id)sender;
- (IBAction)btnEntrerScoreTouchDown:(id)sender;
- (IBAction)btnTerminerTouchDown:(id)sender;
- (IBAction)stepperJuge1ValueChanged:(UIStepper *)sender;
- (IBAction)stepperJuge2ValueChanged:(UIStepper *)sender;
- (IBAction)stepperJuge3ValueChanged:(UIStepper *)sender;
- (IBAction)stepperJuge4ValueChanged:(UIStepper *)sender;
- (IBAction)stepperJuge5ValueChanged:(UIStepper *)sender;
- (IBAction)stepperJuge6ValueChanged:(UIStepper *)sender;
- (IBAction)stepperJuge7ValueChanged:(UIStepper *)sender;
- (void)updateClassement;
- (void)updateNombreAthleteRestant;
- (void)updateAthletesEnCourse;
- (void)updateAthletesSuivants;
- (int)nombreAthleteNonTermine;
@end
